/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.member.entity;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.wealth.system.entity.Corporation;

@Entity
@Table(name = "member_returncash")
public class Returncash implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String picture;
	private Date crateTime;
	private Integer status;//1。未确认 2.确认0.删除
	private Corporation corp;
	private Member member;
	private String openid;
	/* ---------------- method ----------------*/
	
	public Returncash(){
	}

	public Returncash(Long id){
		this.id = id;
	}

	/* ---------------- getter/setter ----------------*/
	
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "picture")
	public String getPicture() {
		return picture;
	}
	
	public void setPicture(String picture) {
		this.picture = picture;
	}
	
	@Column(name = "crate_time")
	public Date getCrateTime() {
		return crateTime;
	}
	
	public void setCrateTime(Date crateTime) {
		this.crateTime = crateTime;
	}
	
	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	@ManyToOne
	@JoinColumn(name="corp_id")
	public Corporation getCorp() {
		return corp;
	}

	public void setCorp(Corporation corp) {
		this.corp = corp;
	}
	@ManyToOne
	@JoinColumn(name="member_id")
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	@Column(name = "open_id")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	
}



